n='5'
upper='4 0 -3 -2 -3'
lower='2 -2 -4 5 4'

n=int(n)
upper=list(map(int,upper.split()))
lower=list(map(int,lower.split()))


data_change=[]

def buble_sort(li):
    for i in range(len(li)):
        exchange=False
        for j in range(len(li)-i-1):
            if li[j+1]<li[j]:
                li[j],li[j+1]=li[j+1],li[j]
            exchange=True
        if exchange==False:
            break

for up,low in zip(upper,lower):
    data_change=(lower-upper)



change_list=[0]*n
judge=sum(upper)
if judge==0:
    print('0')
elif judge>0:


